<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2025/3/11
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--useBean动作元素的演示--%>
<jsp:useBean id="stu_01" class="com.candy.bean.Student" scope="request"></jsp:useBean>
<%--对bean对象的属性进行赋值，本质上来讲是调用bean对象的setter方法--%>
<jsp:setProperty name="stu_01" property="stuName" value="zhangsan"></jsp:setProperty>
<%--对bean对象的属性取值的操作，本质上是调用bean对象的getter方法--%>
<jsp:getProperty name="stu_01" property="stuName"/>
</body>
</html>
